package com.donghaiair.business.empmobileinfo.service.impl;

import java.util.Date;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.donghaiair.business.empmobileinfo.dao.TEmpMobileinfoMapper;
import com.donghaiair.business.empmobileinfo.domain.TEmpMobileinfo;
import com.donghaiair.business.empmobileinfo.service.ITEmpMobileinfoService;

/**
 * <p>
 * 员工设备信息 服务实现类
 * </p>
 *
 * @author Tyler
 * @since 2017-09-11
 */
@Service
public class TEmpMobileinfoServiceImpl extends ServiceImpl<TEmpMobileinfoMapper, TEmpMobileinfo> implements ITEmpMobileinfoService {
	@Autowired
	private TEmpMobileinfoMapper tempmobileMapper;
	
	@Override
	public TEmpMobileinfo selectEmpMobileInfoByEmpId(String empId) {
		return tempmobileMapper.selectEmpMobileInfoByEmpId(empId);
		}
	@Override
	public boolean bindMobileByEmpId(String empId,String deviceNumber,String updateUser,String classify,Date updateTime) {
		
		int total =tempmobileMapper.bindMobileByEmpId(empId,deviceNumber,updateUser,classify,updateTime);
		if(total>0){
			return true;
		}else{
			return false;
		}
	}
	


}
